package net.minecraft.realms;

import java.util.Random;
import net.minecraft.util.MathHelper;
import org.apache.commons.lang3.StringUtils;

public class RealmsMth {
	public static float sin(float p_sin_0_) {
		return MathHelper.sin(p_sin_0_);
	}

	public static double nextDouble(Random p_nextDouble_0_, double p_nextDouble_1_, double p_nextDouble_3_) {
		return MathHelper.getRandomDoubleInRange(p_nextDouble_0_, p_nextDouble_1_, p_nextDouble_3_);
	}

	public static int ceil(float p_ceil_0_) {
		return MathHelper.ceiling_float_int(p_ceil_0_);
	}

	public static int floor(double p_floor_0_) {
		return MathHelper.floor_double(p_floor_0_);
	}

	public static int intFloorDiv(int p_intFloorDiv_0_, int p_intFloorDiv_1_) {
		return MathHelper.bucketInt(p_intFloorDiv_0_, p_intFloorDiv_1_);
	}

	public static float abs(float p_abs_0_) {
		return MathHelper.abs(p_abs_0_);
	}

	public static int clamp(int p_clamp_0_, int p_clamp_1_, int p_clamp_2_) {
		return MathHelper.clamp_int(p_clamp_0_, p_clamp_1_, p_clamp_2_);
	}

	public static double clampedLerp(double p_clampedLerp_0_, double p_clampedLerp_2_, double p_clampedLerp_4_) {
		return MathHelper.denormalizeClamp(p_clampedLerp_0_, p_clampedLerp_2_, p_clampedLerp_4_);
	}

	public static int ceil(double p_ceil_0_) {
		return MathHelper.ceiling_double_int(p_ceil_0_);
	}

	public static boolean isEmpty(String p_isEmpty_0_) {
		return StringUtils.isEmpty(p_isEmpty_0_);
	}

	public static long lfloor(double p_lfloor_0_) {
		return MathHelper.floor_double_long(p_lfloor_0_);
	}

	public static float sqrt(double p_sqrt_0_) {
		return MathHelper.sqrt_double(p_sqrt_0_);
	}

	public static double clamp(double p_clamp_0_, double p_clamp_2_, double p_clamp_4_) {
		return MathHelper.clamp_double(p_clamp_0_, p_clamp_2_, p_clamp_4_);
	}

	public static int getInt(String p_getInt_0_, int p_getInt_1_) {
		return MathHelper.parseIntWithDefault(p_getInt_0_, p_getInt_1_);
	}

	public static double getDouble(String p_getDouble_0_, double p_getDouble_1_) {
		return MathHelper.parseDoubleWithDefault(p_getDouble_0_, p_getDouble_1_);
	}

	public static int log2(int p_log2_0_) {
		return MathHelper.calculateLogBaseTwo(p_log2_0_);
	}

	public static int absFloor(double p_absFloor_0_) {
		return MathHelper.func_154353_e(p_absFloor_0_);
	}

	public static int smallestEncompassingPowerOfTwo(int p_smallestEncompassingPowerOfTwo_0_) {
		return MathHelper.roundUpToPowerOfTwo(p_smallestEncompassingPowerOfTwo_0_);
	}

	public static float sqrt(float p_sqrt_0_) {
		return MathHelper.sqrt_float(p_sqrt_0_);
	}

	public static float cos(float p_cos_0_) {
		return MathHelper.cos(p_cos_0_);
	}

	public static int getInt(String p_getInt_0_, int p_getInt_1_, int p_getInt_2_) {
		return MathHelper.parseIntWithDefaultAndMax(p_getInt_0_, p_getInt_1_, p_getInt_2_);
	}

	public static int fastFloor(double p_fastFloor_0_) {
		return MathHelper.truncateDoubleToInt(p_fastFloor_0_);
	}

	public static double absMax(double p_absMax_0_, double p_absMax_2_) {
		return MathHelper.abs_max(p_absMax_0_, p_absMax_2_);
	}

	public static float nextFloat(Random p_nextFloat_0_, float p_nextFloat_1_, float p_nextFloat_2_) {
		return MathHelper.randomFloatClamp(p_nextFloat_0_, p_nextFloat_1_, p_nextFloat_2_);
	}

	public static double wrapDegrees(double p_wrapDegrees_0_) {
		return MathHelper.wrapAngleTo180_double(p_wrapDegrees_0_);
	}

	public static float wrapDegrees(float p_wrapDegrees_0_) {
		return MathHelper.wrapAngleTo180_float(p_wrapDegrees_0_);
	}

	public static float clamp(float p_clamp_0_, float p_clamp_1_, float p_clamp_2_) {
		return MathHelper.clamp_float(p_clamp_0_, p_clamp_1_, p_clamp_2_);
	}

	public static double getDouble(String p_getDouble_0_, double p_getDouble_1_, double p_getDouble_3_) {
		return MathHelper.parseDoubleWithDefaultAndMax(p_getDouble_0_, p_getDouble_1_, p_getDouble_3_);
	}

	public static int roundUp(int p_roundUp_0_, int p_roundUp_1_) {
		return MathHelper.func_154354_b(p_roundUp_0_, p_roundUp_1_);
	}

	public static double average(long[] p_average_0_) {
		return MathHelper.average(p_average_0_);
	}

	public static int floor(float p_floor_0_) {
		return MathHelper.floor_float(p_floor_0_);
	}

	public static int abs(int p_abs_0_) {
		return MathHelper.abs_int(p_abs_0_);
	}

	public static int nextInt(Random p_nextInt_0_, int p_nextInt_1_, int p_nextInt_2_) {
		return MathHelper.getRandomIntegerInRange(p_nextInt_0_, p_nextInt_1_, p_nextInt_2_);
	}
}
